import Layout from "@/layout";

const traceabilityRouter = {
  path: "/traceability/index",
  component: Layout,
  redirect: "noRedirect",
  name: "traceability",
  hidden: false,
  meta: {
    title: "溯源管理",
    abbre: "溯源",
    icon: "left_menu_traceability",
    navigation: "/traceability",
    id: "407"
  },
  children: [
    {
      path: "/traceability/index",
      component: () => import("@/views/traceability/list/index"),
      name: "traceability_list",
      hidden: false,
      meta: {
        title: "溯源列表",
        noCache: false,
        navigation: "/traceability/index",
        icon: "menu_big_data"
      }
    },
    {
      path: "/traceability/food",
      component: () => import("@/views/traceability/food/index"),
      name: "traceability_food",
      hidden: false,
      meta: {
        title: "食材留样",
        noCache: false,
        navigation: "/traceability/food",
        icon: "menu_big_data"
      }
    },
    {
      path: "/traceability/detail",
      component: () => import("@/views/traceability/detail/index"),
      name: "traceability_detail",
      hidden: true,
      meta: {
        title: "溯源列表",
        noCache: false,
        navigation: "/traceability/index",
        icon: "menu_big_data"
      }
    },
  ]
};

export default traceabilityRouter;